
    
    <script type="text/javascript">
    $(document).ready(function(){	
    $("#browser").treeview();
    });
		 function InitSessionTimer() {
		    /* mReschke 2010-09-29 */
		    warn_sec = 44 * 60 * 1000;             //Warning time in milliseconds
		    timeout_sec = 45 * 60 * 1000;          //Actual timeout in milliseconds
		    show_warning = true;
		    epoch = new Date().getTime();
		    CheckSessionStatus();
		}
		InitSessionTimer();
		function CheckSessionStatus() {
		    /* mReschke 2010-09-29 */
		 
		    //Check for session warning
		    epoch2 = new Date().getTime();
		    if (epoch2 > epoch + warn_sec && epoch2 < epoch + timeout_sec && show_warning) {
		        show_warning = false; //Don't show again
		        alert_shown = true;
		        alert("Your session will timeout in " + Math.round((timeout_sec - warn_sec) / 60000) + " minute, please click a button or navigate to another page to refresh your session before it expires.");
		        down = setTimeout("CheckSessionStatus();", 1000);
		    } else if (epoch2 > epoch + timeout_sec) {
		        alert("Your session has timed out.");
		        window.location.href = 'logout.action';
		    } else {
		        down = setTimeout("CheckSessionStatus();", 1000);
		    }
		}
     </script>
 
 
    </body>
</html>
